#!/bin/bash

until [ $# -eq 0 ]
do 
	line1=`head -n 1 $1`
	line2=`tail -n 1 $1`

	param1=`echo $line1 | cut -f1 -d' '`

	echo `echo $line2` ${param1:1} `echo $line1 | cut -f 2-5 -d' '`
		
	shift
done
